package com.zufangbao.earth.service;

import java.util.List;

import com.demo2do.core.service.GenericService;
import com.zufangbao.earth.entity.particalsystem.Partical;
import com.zufangbao.gluon.exception.CommonException;

public interface ParticalService extends GenericService<Partical>{
	
	public void createPartical(Partical partical) throws CommonException;
	
	public Partical getParticalByName(String name);
	
	public void deleteParticalByUniqueId(String uniqueId);

	public Partical getParticalByUniqueId(String uniqueId);

	public String updateSinglePartical(Partical partical, String originalUniqueId);

	public void deleteParticalAndModelsByUniqueId(String particalUniqueId);

	public List<Partical> loadAllQuarks();

	public boolean isQuarkPartical(String uniqueId);

	public String getQuarkApIUrl(String uniqueId, String apiName)
			throws CommonException;
	
	public List<Partical> loadAllQuarksByAppId(String appId);

}
